package com.qfedu.fmmall.shopcart.controller;

import com.qfedu.fmmall.shopcart.service.ShopCartDelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : yanBin
 * @date :2022/2/10 13:35
 */
@RestController
@RequestMapping("/shupcart")
public class ShopCartDelController {

    @Autowired
    private ShopCartDelService shopCartDelService;
    @DeleteMapping("/delete/{cids}")
    public int delete(@PathVariable String cids){

        return  shopCartDelService.delete(cids);
    }
}
